package com.imooc.repository;

import com.imooc.domain.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Create By Liuqz
 *
 * @date 2018/6/2 20:23
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster,String> {

    /** 根据买家的微信id查询所有的订单*/
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);

}
